Skip to main content

All Questions

Tagged with
1vote
3answers
104views

Is it possible to run a script when a file is accessd?

I have a program that, every time when a it does something it re-reads its configuration file. I would like to replace that file with some kind of virtual file, which calls a script an generates the ...
Moeren's user avatar
0votes
1answer
85views

How to run a command that requires input/output location on all folders in a directory, while correspondingly naming the new output folders?

For context, I have some experience with Unix and basic commands, but I'm seriously struggling to conceptualize more complex manipulations of files. Essentially, I have this command I want to run from ...
avery's user avatar
0votes
1answer
50views

How do I copy directory structure as symlinks inside other directory

I am looking for an easy way to backup all my dotfiles in a git repository. Solution that I'm aiming for: have git as my source of truth for my dotfiles contents in my home directory backed up files ...
Artem Sevos's user avatar
0votes
2answers
205views

Command-line tool enabling tagging and related tags functionality

Is there a command-line tool that enables to give a file more attributes than a name? For example, we have a file called ubuntu.pdf and we give it tags like command-line, shell, nautilus, ...
xralf's user avatar
0votes
1answer
1kviews

Command to find duplicate files in different directories

I am looking for a tool, utility, or script that reports if two directories contain the same files (recusrively), but not necessarily in the same subdirectories. I'm begun the tedious and long-overdue ...
user394's user avatar
  • 14.7k
1vote
2answers
212views

Redirect to a filename that will be a variable and contain a command substitution

I'm using nmap to scan a network and then create an XML file that contains the scanned information. I want that XML file to contain the date of the scan so that each file is unique and I can see the ...
johnmacward's user avatar
-1votes
1answer
113views

Bash script via .desktop save to variable external filename with fullpath

ok i try to make the most resumed the points i want to do. Sorry for the repetions i don't know how make this question more objectively The first i am making a script for launch "mupen64plus"...
Inukaze's user avatar
-3votes
1answer
823views

Im trying to run a shell script but I keep getting If: expression syntax. How to I get rid of it

Good afternoon, I'm trying to run my code for assignment 4 but I keep getting an expression syntax error, can you tell me why? #!/bin/sh if [ "$#" -ne 1 ] then echo "Usage: ...
Gbreezoo's user avatar
0votes
0answers
30views

Where on earth could my startup tasks be?

Ok, for context: I once created a task to run a script whenever I boot my computer up and log in specifically as root. That was a while ago. I now want to remove that script from autostarting, but I'...
Lee's user avatar
  • 135
0votes
1answer
506views

How to extract txt files from multple folders and merging all into a single folder?

I have 100 of folder where in each folder I have another folder with same name and inside that folder there is a .txt file which I want to extract and merge all the txt files into a new folder. Please ...
heilo's user avatar
-1votes
1answer
577views

One master ksh file to call 2 ksh script files [duplicate]

I have 2 ksh (korn shell script) : file1.ksh and file2.ksh; and I want to have a master file ksh script that will call the 2 files; what's the code I have to put in my master file? Thanks
ssaf's user avatar
0votes
2answers
207views

move recently created files matching a pattern from one folder to a different one

I am looking for a bash script example which does the following: I have files being written under /tmp folder I do at the xterm prompt, ls -ltr which gives me a list of recent files such as: ...
Eric's user avatar
1vote
2answers
357views

ranger chain commands in config

I am using ranger as my terminal file manager and now that I understand the basics, I wanted to get a bit deeper into customizing the rc for my purposes. One thing I like to do is to map a command to ...
Enemoy's user avatar
2votes
2answers
2kviews

How to merge txt file with the same name from all subdirectories

I have folders with a lot of files, Each folder has txt files of the same name, I want to merge all txt files from all subdirectories into a single folder. Example: /home/parent/Folder1 ===> ...
Surprise Awofemi's user avatar
0votes
1answer
836views

Only perform sed operations on lines starting with a particular string [closed]

I have the following file format Received from +11231231234 at 2021-10-10T19:56:50-07:00: This is a message that contains words like from, at, etc. Sent to +11231231234 at 2021-10-11T06:50:57+00:00: ...
jf4i2d's user avatar

153050per page
close